//
//  ViewController.m
//  MultipleInheritanceDemo
//
//  Created by apple on 2018/1/3.
//  Copyright © 2018年 WJ. All rights reserved.
//

#import "ViewController.h"
#import "ClassA.h"
#import "ClassB.h"
#import "ClassC.h"
#import "ClassA+MyCategory.h"

#import "Person.h"
#import "Student.h"
#import "WJProxy.h"

#import "DealerProxy.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    /*DealerProxy *proxy = [DealerProxy dealerProxy];

    [proxy purchaseBookWithTitle:@"swift 进阶"];
    [proxy purchaseClothesWithColor:@"彩虹色"];*/
    
    Person *p = [[Person alloc] init];
    Student *s = [[Student alloc] init];
    
    WJProxy *proxy = [WJProxy alloc];
    
    [proxy transformToObject:p];
    
    Person *person = (Person *)proxy.object;
   
    
    [proxy performSelector:@selector(setName:) withObject:@"小米"];
    person.name = @"小李";
    NSLog(@"%@",person.name);
    
    [proxy performSelector:@selector(eat)];
    
    [proxy transformToObject:s];
    [proxy performSelector:@selector(study)];
    
    ClassC *c = [[ClassC alloc] init];
    
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
